export default {
  login: function(username, password) {
    return new Promise((resolve, reject) => {
      setTimeout(() => {
        if (username === 'admin' && password === '<PASSWORD>') {
          resolve()
        } else {
          reject('用户名或密码错误')
        }
      }, 1000);
    })
  }
}